const fetch_fun = (path) => {
    return fetch(path).then(res => res.json())
}

export default class fetch_plugin {
    static install(Vue) {
        Vue.mixin({
            data() {
                return {
                    fetch: fetch_fun
                }
            },
        })
    }
}